#!/usr/bin/env python3

import rospy
from DrEmpower_can.msg import get_ids
# import DrEmpower as dr

def callback(data):
    import DrEmpower as dr
    id_list = []
    id_list = dr.get_ids()
    for i in range(len(id_list)):
        rospy.loginfo("get_ids_node： %d", id_list[i])

def listener():
    rospy.init_node("get_ids", anonymous=True)
    rospy.Subscriber("get_ids", get_ids, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

